<!DOCTYPE html>
<html 
<?php 
function getAcceptLang(){
	$langArr = array('zh-cn','zh-tw','zh-mo','zh-sg','zh-hk','zh-my');
	$navLang = strtolower(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5));
	if(in_array($navLang,$langArr)){
		return $navLang;
	}else{
		return "zh-cn";
	}
}
$variant=get_query_var('variant');
$lang = empty($variant)?getAcceptLang():$variant;
echo 'lang="'.$lang.'"';
?>
>
<head>
<meta charset="utf-8">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php if( ztmao( 'ztmao_favicon', '' ) ) { ?>
	<link rel="shortcut icon" href="<?php echo ztmao( 'ztmao_favicon', '' ); ?>" type="image/x-icon" >
	<?php }else{ ?>
	<link rel="Shortcut Icon" href="<?php bloginfo('template_url');?>/img/favicon.ico" type="image/x-icon" />
<?php }?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noarchive"> 
<meta name="google" content="notranslate">
<link rel="dns-prefetch" href="https://www.dailybuzz.cc">
<link rel="dns-prefetch" href="https://pagead2.googlesyndication.com">
<link rel="alternate"  href="<?php echo home_url().str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="x-default">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-cn<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-cn">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-tw<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-tw">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-hk<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-hk">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-mo<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-mo">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-sg<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-sg">
<link rel="alternate"  href="<?php echo home_url(); ?>/zh-my<?php echo str_replace(empty($variant)?'':$variant.'/', '',  $_SERVER['REQUEST_URI']); ?>" hreflang="zh-my">
<style>
/*critical css*/
html{font-family:sans-serif}body{margin:0}a{background-color:transparent}img{border:0}button,input{margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;color:inherit}button{overflow:visible}button{text-transform:none}button,input[type="submit"]{-webkit-appearance:button}input{line-height:normal}*{box-sizing:border-box}::after,::before{box-sizing:border-box}html{font-size:10px}body{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:rgb(51,51,51);background-color:rgb(255,255,255)}button,input{font-family:inherit;font-size:inherit;line-height:inherit}img{vertical-align:middle}h3{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h3{margin-top:20px;margin-bottom:10px}h3{font-size:24px}p{margin:0 0 10px}ul{margin-top:0;margin-bottom:10px}ul ul{margin-bottom:0}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.row{margin-right:-15px;margin-left:-15px}.col-lg-8,.col-md-8,.col-sm-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-lg-8{width:66.66666667%}.col-lg-8{float:left}@media (max-width:767px){.col-lg-8{width:100%}.col-lg-8{float:left}}@media (min-width:768px){.col-sm-12{float:left}.col-sm-12{width:100%}}@media (min-width:992px){.col-md-8{float:left}.col-md-8{width:66.66666667%}}@media (min-width:1200px){.col-lg-8{float:left}.col-lg-8{width:66.66666667%}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-top-left-radius:1px;border-top-right-radius:1px;border-bottom-right-radius:1px;border-bottom-left-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.clearfix::after,.clearfix::before,.container::after,.container::before,.row::after,.row::before{display:table;content:' '}.clearfix::after,.container::after,.row::after{clear:both}.pull-right{float:right!important}@font-face{font-family:FontAwesome;src:url(/wp-content/themes/M1/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'),url(/wp-content/themes/M1/fonts/fontawesome-webfont.woff2?v=4.7.0) format('woff2'),url(/wp-content/themes/M1/fonts/fontawesome-webfont.woff?v=4.7.0) format('woff'),url(/wp-content/themes/M1/fonts/fontawesome-webfont.ttf?v=4.7.0) format('truetype'),url(/wp-content/themes/M1/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;font-family:FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.pull-right{float:right}.fa-caret-down::before{content:'\f0d7'}body{font-style:normal;font-variant:normal;font-weight:400;font-size:14px;line-height:1.5;font-family:'microsoft yahei',微软雅黑,'Hiragino Sans GB',宋体,sans-serif,Arial;padding:0;margin:0}div,p,img,a,span,ul,li,form,input{padding:0;margin:0;outline:none}ul,li{list-style:none;padding:0;margin:0}h3{padding:0;margin:0}a{text-decoration:none}.clearfix::after{content:'.';display:block;height:0;clear:both;visibility:hidden}.clearfix{zoom:1}img.xyscale{width:100%}h3{font-weight:600}h3{font-size:24px}.container{width:1170px}.header{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(240,240,240);z-index:500;width:100%}.header{height:60px;line-height:60px}.mnav{display:none}.pull-right{float:right;width:30%;padding-top:1.5rem}.logo{display:block;float:left;text-align:left;margin-left:0;margin-right:0;position:relative;width:12%}.logo{width:12%}.logo img{width:auto;height:27px}.nav-left{margin-left:50px;margin-top:0;padding:0;float:left;display:inline-block}.nav-left a{color:rgb(51,51,51);font-size:16px}.nav-left .current-menu-item a{color:rgb(60,165,246)}.nav-left .nav-menu>li{float:left;margin-right:40px;height:60px;position:relative}.menu-item-more .fa{margin-left:4px;color:rgb(206,206,206);font-size:14px}.nav-menu-more{display:none;width:160px;opacity:1;overflow:hidden;box-sizing:border-box;position:absolute;padding:20px;background-color:rgba(255,255,255,.980392);z-index:1000;box-shadow:rgba(18,21,21,.2) 0 1px 15px;margin-top:0;top:60px;left:50%;margin-left:-80px}.nav-menu-more>li.menu-item{width:60px;float:left}.nav-menu-more>li.menu-item>a{display:block;height:38px;line-height:38px;font-size:16px;width:100%;text-align:center}.nav-right{display:block;float:right}#top_nav{background-color:rgb(255,255,255);position:fixed;opacity:.9;z-index:99999;background-position:initial initial;background-repeat:initial initial}.top-bar{height:45px;background-color:rgb(255,255,255);float:left;width:30%;background-position:initial initial;background-repeat:initial initial}.navbar-toggle{display:none;width:30px;height:30px;background-color:rgb(255,255,255);text-align:center;padding:0;margin:16px 0 0;border:none;float:none;background-position:initial initial;background-repeat:initial initial}.navbar-toggle .icon-bar{width:23px;height:1px;background-color:rgb(0,0,0);margin-bottom:7px;background-position:initial initial;background-repeat:initial initial}.navbar-toggle .icon-bar+.icon-bar{margin-top:0}.icon{background-image:url(../img/icon.png);display:inline-block;background-repeat:no-repeat no-repeat}#top-pic{padding-top:60px}#cont-list,#top-pic{position:relative;width:100%;overflow:hidden;margin-left:auto;margin-right:auto}#adv03{width:100%;background-position:0% 0%;background-repeat:no-repeat no-repeat}.mob-sub{color:rgb(102,102,102);font-size:15px;line-height:24px;margin:1.2rem 0}.htitle-color{font-size:20px;padding-top:20px;font-weight:700;color:rgb(49,66,78)}.mob-author .author-name,.mob-author .time{font-size:12px;color:rgb(187,187,187);font-style:normal;line-height:24px}.mob-author .author-name{margin-right:5px}.cont-left{padding-left:0}.la-list02 .la-l-img,.la-r-text{float:left}.la-list02 .la-l-img{width:30%;overflow:hidden}.la-list02 .la-l-img img{width:100%}.la-list02 .la-r-text{width:70%;padding-left:20px}.go-top0{bottom:150px}.la-list02 .la-l-img,.la-r-text{float:left}.la-list02 .la-l-img{width:30%;overflow:hidden}.la-list02 .la-l-img img{width:100%}.la-list02 .la-r-text{width:70%;padding-left:20px}.la-list02 .la-l-img,.la-r-text{float:left}.la-list02 .la-l-img{width:30%;overflow:hidden}.la-list02 .la-l-img img{width:100%}.la-list02 .la-r-text{width:70%;padding-left:20px}.line-botm{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);padding:1.5rem 0}.loading{height:16px;line-height:16px;margin-top:16px;margin-bottom:4px;width:100%;font-size:12px;color:rgb(101,113,128);text-align:center}.loading.ball-pulse>div{background-color:rgb(153,153,153);width:8px;height:8px;border-top-left-radius:100%;border-top-right-radius:100%;border-bottom-right-radius:100%;border-bottom-left-radius:100%;margin:1px;display:inline-block}.scroller-status p{text-align:center;color:rgb(153,153,153);padding:16px 0 4px}.icon-top{height:40px;width:40px;display:block;background-position:-191px 6px}.go-top0{background-color:rgb(255,255,255);border:1px solid rgb(238,238,238);bottom:50px;display:none;position:fixed;right:10px;padding:10px;z-index:100}.search-wrap .tt-input__inner{vertical-align:middle;display:table-cell;height:44px;box-sizing:border-box;outline:rgb(0,0,0);padding:3px 10px;width:100%;background-color:rgb(245,246,247);border-top-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border:1px solid rgb(232,232,232);color:rgb(31,45,61)}.tt-input-group{line-height:normal;display:inline-table;width:100%;border-collapse:separate}.tt-input-group__append .tt-button{display:block;margin:-10px;border-right-color:transparent;border-left-color:transparent;background-color:transparent;color:inherit;border-top-width:0;border-bottom-width:0;line-height:1;white-space:nowrap;text-align:center;box-sizing:border-box;outline:rgb(0,0,0);padding:10px 15px}.search-wrap .tt-input-group__append{vertical-align:middle;display:table-cell;border:1px solid rgb(60,165,246);background-color:rgb(60,165,246);color:rgb(255,255,255);position:relative;left:-1px;padding:0 18px;width:1%;white-space:nowrap;border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}@media screen and (max-width:767px){.pull-right{display:none}.mob-sub{display:none}}@media (min-width:768px){.container{width:750px}.navbar-toggle{display:inline-block}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}@media (max-width:991px) and (min-width:768px){.header{height:50px;line-height:50px}.logo{float:left;width:40%;text-align:center}.nav-right{display:none}.mnav{display:inline-block}}@media (max-width:991px){.nav-left{display:none}.cont-left{padding-right:0}}@media (max-width:767px) and (min-width:320px){.header{height:50px;line-height:50px}.logo{float:left;width:40%;text-align:center}.nav-right{display:none}.mnav{width:100%}#top-pic{display:none}.cont-left{padding-left:0}}@media (max-width:767px){.container{width:calc(100% - 20px)}.go-top0{padding:0}.mob-author{margin:0}.mob-author .time{font-size:1rem;margin:0}}@media (max-width:320px){.header{height:50px;line-height:50px}.logo{float:left;width:40%;text-align:center}.nav-right{display:none}.mnav{display:inline-block}}.line-botm h3{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.box-moder{background-color:rgb(244,245,246)}.box-moder h3{height:auto;font-size:18px;padding:15px 0;margin:0;color:rgb(34,34,34);font-weight:700}.span-mark{display:none;background-color:rgb(246,55,86);position:absolute;z-index:1;height:20px;line-height:20px;margin:-28px 0 0;width:4px}.hot-article{padding:0 15px}.hot-article ul li:first-child{padding-top:0}.hot-article ul li{padding:10px 0;overflow:hidden;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(232,232,232)}.hot-article ul li:last-child{border:none}.hots-post-widget .mod-thumb{width:100px;height:74px;float:left}.mod-thumb{width:220px;height:165px;display:block;overflow:hidden;position:relative}.hot-article li .project-content{height:74px;vertical-align:middle;font-size:0}.hot-article li .project-content::before{content:'';display:inline-block;width:0;height:100%;vertical-align:middle}.hot-article ul li .project-content a{display:inline-block;vertical-align:middle;font-size:14px;line-height:20px;color:rgb(34,34,34);overflow:hidden;-webkit-line-clamp:3;max-height:60px}.widget,.widget_ztmao_ad,.widget_ztmao_mostviews2{margin-bottom:20px;overflow:hidden}.widget_ztmao_mostviews2{border-top-width:2px;border-top-style:solid;border-top-color:rgb(237,64,64)}.project-content{margin-left:115px}@media screen and (max-width:767px){.line-botm{padding:10px 0}}
</style>	
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- <div class="search-box " id="search-box">
	<i class="icon icon-search-close js-show-search-box"></i>
	<div class="search-content overlay-dialog-animate">
		<div class="search-input">
			<form role="search" method="get" action="<?php echo get_option('home'); ?>" onsubmit="return checkinput()">
				<button type="submit"></button>
				<input placeholder="请输入关键字，按回车键搜索" name="s" id="search-input">
				<input id="search-input" type="hidden">
			</form>
		</div>
		<div class="search-history search-hot">
			<span>热搜词</span>
			<ul>
				<?php if(function_exists('wp_nav_menu')) wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'search-nav')); ?>
			</ul>
		</div>
	</div>
</div> -->
<div id="top_nav" class="header yapiskan">
	<div class="container">
		<div class="row">
			<div class="top-bar mnav">
				<button class="navbar-toggle js-open-nav" type="button">
				<div class="icon-bar">
				</div>
				<div class="icon-bar">
				</div>
				<div class="icon-bar">
				</div>
				</button>
			</div>
			<div class="logo mnav">
				<a href="<?php bloginfo('url'); ?>">
				<?php if( ztmao('ztmao_logo') ) { ?>
				<img src="<?php echo ztmao('ztmao_logo'); ?>" alt="<?php bloginfo('name'); ?>">
				<?php }else{ ?>
				<img src="<?php bloginfo('template_url');?>/img/logo.png" alt="<?php bloginfo('name'); ?>">
				<?php }?>
		</a>
			</div>
<!-- 			<div class="pull-right mnav">
				<i class="icon icon-search" id="msearch"></i>
			</div> -->
			<div class="nav-left" id="nav">
				<ul class="nav-menu clearfix">
					<?php if(function_exists('wp_nav_menu') && has_nav_menu('left-sidebar') ) {wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'left-sidebar'));
					 ?>	
 					<li class="menu-item-more">
 						<a href="javascript:;">更多<i class="fa fa-caret-down" aria-hidden="true"></i></a>
						<ul class="nav-menu-more">
							<?php if(function_exists('wp_nav_menu') && has_nav_menu('more-nav') ) {wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'more-nav'));} ?>	
						</ul>
					</li>
					<?php } else { ?>
						<ul id="menu-navigation" class="menu">
							<li>请到[后台->外观->菜单]中设置菜单。</li>
						</ul>
					<?php } ?>

				</ul>
			</div>
			<div class="nav-right">
				<ul class="clearfix">
				<?php if( ztmao('social_weixin') ) { ?>
					<!--<li class="wx-li">
					<div class="wx-pic">
						<img src="<?php echo ztmao('ztmao_social_weixin'); ?>" alt="微信订阅号">
						<div class="wx-text">
							<span>微信扫一扫</span>
						</div>
					</div>
					<i class="icon wx-icon"></i><span>微信</span><em class="guide-prompt" style="display: none;"></em>
					</li>
				<?php } ?>
				<?php if( ztmao('ztmao_ssk') ) { ?>
					<li class="search-li"><i class="icon icon-search "></i><span>搜索</span></li>
				<?php } ?>-->
				<?php if( ztmao('ztmao_login') ) { ?>
				<?php if ( is_user_logged_in() ) { 
					global $current_user;
					wp_get_current_user(); 
					$avatar = get_avatar( $current_user->user_email, 80);
				?>
					<li class="login-li"><a href="<?php bloginfo('url'); ?>/wp-admin/" title="管理网站">管理</a></li>
				<?php }else{?>
					<!-- <li class="login-li"><a href="/wp-login.php" title="登录网站">登录</a></li> -->
				<?php }?>
				<?php } ?>
				</ul>
			</div>
		</div>
	</div>
</div>